// Sele.cpp: implementation of the Sele class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "Sele.h"

#ifdef _DEBUG
#undef THIS_FILE
static char THIS_FILE[]=__FILE__;
#define new DEBUG_NEW
#endif

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
namespace PDMS
{
	namespace SpecFrame
	{
		UE_PDMSCLASS_IMPLEMENT( Sele, UeDbObject, _T("SELE") );

		Sele::Sele()
		{	
			m_dAnswer = 0.0;
			m_dMaxAnswer = 0.0;
			m_strQuestion = "";
			m_dQualifer = 0.0;
			m_dDefault = 0.0;
			m_strTdefault = "";
			m_strTQuestion = "";
			m_strTqualifier = "";		
			m_strTanswer = "";

		}

		Sele::Sele(Sele& obj) : UeDbObject(obj)
		{
			m_dAnswer = obj.m_dAnswer;
			m_dMaxAnswer = obj.m_dMaxAnswer;
			m_strQuestion = obj.m_strQuestion;
			m_dQualifer = obj.m_dQualifer;
			m_dDefault = obj.m_dDefault;
			m_strTdefault = obj.m_strTdefault;
			m_strTQuestion = obj.m_strTQuestion;
			m_strTqualifier = obj.m_strTqualifier;		
			m_strTanswer = obj.m_strTanswer;
		}

		Sele::~Sele()
		{

		}

		Persistable* Sele::Clone()
		{
			return new Sele(*this);
		} 
		
		BOOL Sele::IsLegalParent( PDMSFrame::UeDbObject* pParent )
		{
			ASSERT(pParent);
			if ( pParent->ClassID()==_T("SPEC") || pParent->ClassID()==_T("SELE") )
				return true;
			else
				return false;
		}
	}	
}


